﻿<sap:ActivityDesigner x:Class="Vision.Core.ActivityComponents.Sql.DbQueryDataSetDesigner"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:cor="clr-namespace:System;assembly=mscorlib"
    xmlns:cord="clr-namespace:System.Data;assembly=System.Data"
    xmlns:sap="clr-namespace:System.Activities.Presentation;assembly=System.Activities.Presentation"
    xmlns:sapv="clr-namespace:System.Activities.Presentation.View;assembly=System.Activities.Presentation"
    xmlns:sapc="clr-namespace:System.Activities.Presentation.Converters;assembly=System.Activities.Presentation">
    <sap:ActivityDesigner.Resources>
        <sapc:ArgumentToExpressionConverter x:Uid="sapv:ArgumentToExpressionConverter_1" x:Key="argumentToExpressionConverter" />
    </sap:ActivityDesigner.Resources>
    <Grid>
        <Grid.Resources>
            <Style TargetType="TextBlock">
                <Style.Setters>
                    <Setter Property="Margin" Value="0,0,10,0" />
                </Style.Setters>
            </Style>
        </Grid.Resources>
        <Grid.ColumnDefinitions>
            <ColumnDefinition />
            <ColumnDefinition />
        </Grid.ColumnDefinitions>
        
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>
        
        <TextBlock Grid.Row="0" Grid.Column="0" Text="Provider Name:" />
        <sapv:ExpressionTextBox Grid.Row="0" Grid.Column="1" Width="150" VerticalAlignment="Center" Expression="{Binding Path=ModelItem.ProviderName, Mode=TwoWay, Converter={StaticResource argumentToExpressionConverter}, ConverterParameter=In}" ExpressionType="{x:Type TypeName=cor:String}" OwnerActivity="{Binding Path=ModelItem, Mode=TwoWay}"/>

        <TextBlock Grid.Row="1" Grid.Column="0" Text="Connection String:" />
        <sapv:ExpressionTextBox Grid.Row="1" Grid.Column="1" Width="150" VerticalAlignment="Center" Expression="{Binding Path=ModelItem.ConnectionString, Mode=TwoWay, Converter={StaticResource argumentToExpressionConverter}, ConverterParameter=In}" ExpressionType="{x:Type TypeName=cor:String}" OwnerActivity="{Binding Path=ModelItem, Mode=TwoWay}"/>

        <TextBlock Grid.Row="2" Grid.Column="0" Text="Config Name:" />
        <sapv:ExpressionTextBox Grid.Row="2" Grid.Column="1" Width="150" VerticalAlignment="Center" Expression="{Binding Path=ModelItem.ConfigName, Mode=TwoWay, Converter={StaticResource argumentToExpressionConverter}, ConverterParameter=In}" ExpressionType="{x:Type TypeName=cor:String}" OwnerActivity="{Binding Path=ModelItem, Mode=TwoWay}"/>

        <TextBlock Grid.Row="3" Grid.Column="0" Text="Command Type:" />
        <sapv:ExpressionTextBox Grid.Row="3" Grid.Column="1" Width="150" VerticalAlignment="Center" Expression="{Binding Path=ModelItem.CommandType, Mode=TwoWay, Converter={StaticResource argumentToExpressionConverter}, ConverterParameter=In}" ExpressionType="{x:Type TypeName=cord:CommandType}" OwnerActivity="{Binding Path=ModelItem, Mode=TwoWay}"/>

        <TextBlock Grid.Row="4" Grid.Column="0" Text="Command Timeout:" />
        <sapv:ExpressionTextBox Grid.Row="4" Grid.Column="1" Width="150" VerticalAlignment="Center" Expression="{Binding Path=ModelItem.CommandTimeout, Mode=TwoWay, Converter={StaticResource argumentToExpressionConverter}, ConverterParameter=In}" ExpressionType="{x:Type TypeName=cor:Int32}" OwnerActivity="{Binding Path=ModelItem, Mode=TwoWay}"/>

        <TextBlock Grid.Row="5" Grid.Column="0" Text="Sql:" />
        <sapv:ExpressionTextBox Grid.Row="5" Grid.Column="1" Width="150" VerticalAlignment="Center" Expression="{Binding Path=ModelItem.Sql, Mode=TwoWay, Converter={StaticResource argumentToExpressionConverter}, ConverterParameter=In}" ExpressionType="{x:Type TypeName=cor:String}" OwnerActivity="{Binding Path=ModelItem, Mode=TwoWay}"/>
    </Grid>
</sap:ActivityDesigner>
